<?php
/**
 * Created by PhpStorm.
 * User: 程阳
 * Date: 2017/2/20
 * Time: 19:06
 */

namespace Common\Model;


class AdminModel extends BaseModel
{
    private $_db = '';

    public function __construct()
    {
        $this->_db = M('admin');
    }

    public function getAdminByZhanghao($zhanghao){
        $res = $this->_db->where("azhanghao='{$zhanghao}'")->find();
        return $res;
    }
}